#include<stdio.h>
#include"Mystdio.h"
#define  myfile "test.txt"
int main()
{
  _FILE * fp = _fopen( myfile , "a" );
  if( fp ==NULL )
  {
    perror("fopen fail\n");
  }

 const char *msg = "hello world\n";
 
 int cnt =5 ;
 while(cnt)
 {
   _fwrite(fp, msg, strlen(msg));

   sleep(1);

cnt --;
 }


  _fclose(fp);

  return 0 ;
}
